package com.njym.java.security.app.mapper;


import com.njym.java.security.app.entity.PaymentRecord;
import com.njym.java.security.app.entity.PaymentRecordVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author zhy
 * @email ${email}
 * @date 2019-11-30 14:09:49
 */
public interface PaymentRecordMapper extends Mapper<PaymentRecord> {

	PaymentRecord getByoutTradeNo(@Param("outTradeNo") String outTradeNo);

	List<PaymentRecordVo> queryList(@Param("chargeUserId") Integer chargeUserId);

	int countList(@Param("chargeUserId") Integer chargeUserId);

    Double getTotals();

	List<PaymentRecordVo> getTotalsByPerson(@Param("index") int index, @Param("limit") Integer limit, @Param("name") String name);

	Double getDailis();

	List<PaymentRecordVo> getPayment(@Param("userId") String userId);
}
